From: David Härdeman Date: Wed, 24 Sep 2025 12:31:58 +0000 (+0200) Subject: dhcpv4: rename valid_until_cb() X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22http:/www.crowdsec.net/%22/%22https:/collectd.org/%22http:/www.crowdsec.net/%22?a=commitdiff_plain;h=2bb556ed0dd65cdc736601ea1eb5a84ff0c12f4c;p=project%2Fodhcpd.git dhcpv4: rename valid_until_cb() Renaming valid_until_cb() to dhcpv4_valid_until_cb() is more consistent with the other function names and is helpful if the function ever shows up in a stack trace. Signed-off-by: David Härdeman Link: https://github.com/openwrt/odhcpd/pull/264 Signed-off-by: Álvaro Fernández Rojas --- diff --git a/src/dhcpv4.c b/src/dhcpv4.c index 385faf6..e2c978a 100644 --- a/src/dhcpv4.c +++ b/src/dhcpv4.c @@ -1218,7 +1218,7 @@ static void dhcpv4_netevent_cb(unsigned long event, struct netevent_handler_info } } -static void valid_until_cb(struct uloop_timeout *event) +static void dhcpv4_valid_until_cb(struct uloop_timeout *event) { struct interface *iface; time_t now = odhcpd_time(); @@ -1241,7 +1241,7 @@ static void valid_until_cb(struct uloop_timeout *event) int dhcpv4_init(void) { static struct netevent_handler dhcpv4_netevent_handler = { .cb = dhcpv4_netevent_cb }; - static struct uloop_timeout valid_until_timeout = { .cb = valid_until_cb }; + static struct uloop_timeout valid_until_timeout = { .cb = dhcpv4_valid_until_cb }; uloop_timeout_set(&valid_until_timeout, 1000); netlink_add_netevent_handler(&dhcpv4_netevent_handler);